import request from '@/utils/request'

// 查询打手列表
export function listInfo(query) {
  return request({
    url: '/ds/info/list',
    method: 'get',
    params: query
  })
}

export function listInfoAll() {
  return request({
    url: '/ds/info/allList',
    method: 'get'
  })
}

// 查询打手详细
export function getInfo(dsUserId) {
  return request({
    url: '/ds/info/' + dsUserId,
    method: 'get'
  })
}

// 新增打手
export function addInfo(data) {
  return request({
    url: '/ds/info',
    method: 'post',
    data: data
  })
}

// 修改打手
export function updateInfo(data) {
  return request({
    url: '/ds/info',
    method: 'put',
    data: data
  })
}

// 删除打手
export function delInfo(dsUserId) {
  return request({
    url: '/ds/info/' + dsUserId,
    method: 'delete'
  })
}
